package org.yellow.backend.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.yellow.backend.utility.appointmentStatus;

import java.util.Date;

/**
 * 预约表
 * @author: hy
 * @create: 2024-01-01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "appointments")
public class Appointment {
    @TableId(type = IdType.AUTO)
    private Long AppointmentId;
    private Long PatientId;
    private Long DoctorId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date AppointmentTime;
    private appointmentStatus Status;

}
